package com.lht.testDemo.dozerMapper;

import org.junit.Test;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Eric
 * @version 1.0
 * @date 2019-07-31
 */
public class DozerMapperTest {

    @Test
    public void test() {
//        TestB b = new TestB();

        Map<String,Object> b =  new HashMap<>();
        b.put("name","骆宏图");
        b.put("kk","kk");

        TestA a = BeanMapper.map(b, TestA.class);
        System.out.println("name:" + a.getName() + ",kk:" + a.getKk() + ",bb:" + a.getBb());
    }
}
